Using Knobs

In this sample you will learn how to use the IMAGE_PARAM_KNOB and IMAGE_PARAM_BUTTON and PARAM_TOOLTIP elements in your skin.

Sample 1

The first step: replace the previous PARAM_TEXT with IMAGE_PARAM_KNOB and IMAGE_PARAM_BUTTON widgets:

It looks better, doesn't it? What we have done here just consists in replacing the widgets by others (and move the text under the widget). Here is the structure of the group containing the Wet and Dry knobs:

All other groups have the same structure: a row of columns containing a knob and a text widget. The knob widget requires two images: knob_black.bmp and its mask file knob_black_mask.bmp.

Note the following statements in this skin:

Sample 2

Let's make this skin fully functional: add PARAM_TOOLTIP widgets to knobs, modify the positions_count and response_curve attributes of the knob (as seen with the text skin of the previous chapter) and add images for the mouse_hover and focus widget states for an optimal user experience:

You should note the following things in this skin: